<?php
/**
 * Created by PhpStorm.
 * User: ahao
 * Email: 827316006@qq.com
 * Date: 2019/12/2 19:23
 */

$redisClient = new swoole_redis;
$redisClient->connect('47.98.176.141','6379',function (swoole_redis $redisClient, $result) {
    echo "connect" . PHP_EOL;
    var_dump($result);
});